package com.tansun.easycare.rule.policytree.service;

import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.decisiontree.entity.RuleTreeNode;
import com.tansun.easycare.rule.exception.BizException;
/**
 * 策略树服务接口
 * @author lixs
 *
 */
import com.tansun.easycare.rule.policytree.model.PolicyTreeModel;
import com.tansun.easycare.rule.policytree.model.PolicyTreeVO;

public interface PolicyTreeService extends RuleBaseService<RuleTreeNode> {

    /**
     * 查找策略树信息
     *
     * @param code        编号
     * @param version     版本
     * @param projectCode 项目编码
     */
    PolicyTreeModel findPolicyTreeModel(String code, String version, String projectCode) throws BizException;

    /**
     * 保存策略树信息
     */
    void saveOrUpdate(PolicyTreeModel treeEntity) throws BizException;

    /**
     * 获取策略树明细
     */
    PolicyTreeVO getTreeInfo(String treeId, String version) throws BizException;

}
